package com.listener;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import lombok.Data;

/**
 * @author Ricky
 * @date 2020-9-3
 */
public interface ProgressListener {
    void progress(Progress progress);


    @Data
    @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE)
    class Progress {
        private int total;
        private int loaded;
        private int error;
        private String Message;
        private String ID;
    }
}
